﻿@using AntDesign.Charts
<Line Data="data" Config="config" />

@code {
    object[] data = new object[] {
        new  { year= "2022-8", value= 3100 },
        new  { year= "2022-9", value= 3300 },
        new  { year= "2022-10", value= 3200.5 },
        new  { year= "2022-11", value= 3430 },
        new  { year= "2022-12", value= 3130.9 },
        new  { year= "2023-1", value= 3400 },
        new  { year= "2023-2", value= 3400 },
        new  { year= "2023-3", value= 3400 },
        new  { year= "2023-4", value= 3400 },
};

    LineConfig config = new LineConfig()
    {
        Title = new AntDesign.Charts.Title()
        {
            Visible = true,
            Text = "工资薪水表",
        },
        Description = new Description()
        {
            Visible = true,
            Text = "这几个月来，您的工资水平曲线",
        },
        Padding = "auto",
        ForceFit = true,
        XField = "year",
        YField = "value",
        Smooth = true,
    };
}